import { apiClient } from './base'

export const getRolePermissions = (roleId) => 
  apiClient.get(`/role-permissions/role/${roleId}`)

export const addRolePermission = (data) => 
  apiClient.post('/role-permissions', data)

export const removeRolePermission = (roleId, permissionId) =>
  apiClient.delete(`/role-permissions/${roleId}/${permissionId}`)